<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libschc: rules_example.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libschc
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">rules_example.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="rules__example_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef _RULES_H_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define _RULES_H_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="schc__config_8h.html">schc_config.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#if USE_IPv6</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="rules__example_8h.html#ad3007681888c4b2caf4f30b9f1e33390">    7</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__ipv6__rule__t.html">schc_ipv6_rule_t</a> <a class="code" href="rules__example_8h.html#ad3007681888c4b2caf4f30b9f1e33390">ipv6_rule1</a> = {</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;    <span class="comment">//  id, up, down, length</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;        1, 10, 10, 10,</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;        {</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;            <span class="comment">//  field,             MSB,len,  pos,dir,   val,            MO,         CDA</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;                { <span class="stringliteral">&quot;version&quot;</span>,        0, 1,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {6},            &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;                { <span class="stringliteral">&quot;traffic class&quot;</span>,  0, 1,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0},            &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;                { <span class="stringliteral">&quot;flow label&quot;</span>,     0, 3,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0, 0},      &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;                { <span class="stringliteral">&quot;length&quot;</span>,         0, 2,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},         &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a7e32821d42dbaeb712ced531ee118153">COMPLENGTH</a> },</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;                { <span class="stringliteral">&quot;next header&quot;</span>,    0, 1,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {17},           &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;                { <span class="stringliteral">&quot;hop limit&quot;</span>,      0, 1,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {64},           &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;                { <span class="stringliteral">&quot;src prefix&quot;</span>,     0, 8,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;                { <span class="stringliteral">&quot;src iid&quot;</span>,        0, 8,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01},</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;                { <span class="stringliteral">&quot;dest prefix&quot;</span>,    0, 8,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;                { <span class="stringliteral">&quot;dest iid&quot;</span>,       56, 8,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,       <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> },</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        }</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;};</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a85ae7295e74c5e4775aadce09dab858f">   29</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__ipv6__rule__t.html">schc_ipv6_rule_t</a> <a class="code" href="rules__example_8h.html#a85ae7295e74c5e4775aadce09dab858f">ipv6_rule2</a> = {</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        2, 10, 10, 10,</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;                { <span class="stringliteral">&quot;version&quot;</span>,        0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {6},            &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;                { <span class="stringliteral">&quot;traffic class&quot;</span>,  0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0},            &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;                { <span class="stringliteral">&quot;flow label&quot;</span>,     0,  3,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0, 0x20},   &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                { <span class="stringliteral">&quot;length&quot;</span>,         0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},         &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a7e32821d42dbaeb712ced531ee118153">COMPLENGTH</a> },</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                { <span class="stringliteral">&quot;next header&quot;</span>,    0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {17},           &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                { <span class="stringliteral">&quot;hop limit&quot;</span>,      0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {64},           &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                { <span class="stringliteral">&quot;src prefix&quot;</span>,     0,  8,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x20, 0x01, 0x06, 0xA8, 0x1D, 0x80, 0x20, 0x21},</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                { <span class="stringliteral">&quot;src iid&quot;</span>,        48, 8,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x02, 0x30, 0x48, 0xFF, 0xFE, 0x5A, 0x00, 0x00},</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,   <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> }, <span class="comment">// by setting the last 2 bytes to 0x00, we allow 16 bit variations</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;                { <span class="stringliteral">&quot;dest prefix&quot;</span>,    0,  8,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x20, 0x01, 0x06, 0xA8, 0x1D, 0x80, 0x20, 0x21},</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                { <span class="stringliteral">&quot;dest iid&quot;</span>,       48, 8,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x50, 0x74, 0xF2, 0xFF, 0xFE, 0xB1, 0x00, 0x00},</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,   <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> },</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;};</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a54474df0f717388d3357229bf7256aff">   49</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__ipv6__rule__t.html">schc_ipv6_rule_t</a> <a class="code" href="rules__example_8h.html#a54474df0f717388d3357229bf7256aff">ipv6_rule3</a> = {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="comment">//  id, up, down, length</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        3, 10, 10, 10,</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            <span class="comment">//  field,             MSB,len,  pos,dir,   val,            MO,         CDA</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                { <span class="stringliteral">&quot;version&quot;</span>,        0, 1,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {6},            &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                { <span class="stringliteral">&quot;traffic class&quot;</span>,  0, 1,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0},            &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                { <span class="stringliteral">&quot;flow label&quot;</span>,     0, 3,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0, 0},      &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                { <span class="stringliteral">&quot;length&quot;</span>,         0, 2,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},         &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a7e32821d42dbaeb712ced531ee118153">COMPLENGTH</a> },</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                { <span class="stringliteral">&quot;next header&quot;</span>,    0, 1,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {17},           &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                { <span class="stringliteral">&quot;hop limit&quot;</span>,      0, 1,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {64},           &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;                { <span class="stringliteral">&quot;src prefix&quot;</span>,     0, 8,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;                { <span class="stringliteral">&quot;src iid&quot;</span>,        0, 8,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02},</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                { <span class="stringliteral">&quot;dest prefix&quot;</span>,    0, 8,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;                { <span class="stringliteral">&quot;dest iid&quot;</span>,       56, 8,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,       <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> },</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;};</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#if USE_UDP</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="rules__example_8h.html#ad1452d5ef8ea29dee09c559ec94d89ae">   73</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__udp__rule__t.html">schc_udp_rule_t</a> <a class="code" href="rules__example_8h.html#ad1452d5ef8ea29dee09c559ec94d89ae">udp_rule1</a> = {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        1, 4, 4, 4,</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        {</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                { <span class="stringliteral">&quot;src port&quot;</span>,       0, 2,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x33, 0x16},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> }, <span class="comment">// 5683</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                { <span class="stringliteral">&quot;dest port&quot;</span>,      0, 2,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x33, 0x16},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                { <span class="stringliteral">&quot;length&quot;</span>,         0, 2,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},             &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a7e32821d42dbaeb712ced531ee118153">COMPLENGTH</a> },</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                { <span class="stringliteral">&quot;checksum&quot;</span>,       0, 2,    1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},             &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a666ff0fbe192b386d46e502fc990ce2f">COMPCHK</a> },</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;};</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a95ba8dccc95c9da737f1f058be5b7854">   83</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__udp__rule__t.html">schc_udp_rule_t</a> <a class="code" href="rules__example_8h.html#a95ba8dccc95c9da737f1f058be5b7854">udp_rule2</a> = {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        2, 4, 4, 4,</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                { <span class="stringliteral">&quot;src port&quot;</span>,       12, 2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x33, 0x16},       &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,       <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> }, <span class="comment">// 1072 - 1087 | {4, 48}</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                { <span class="stringliteral">&quot;dest port&quot;</span>,      12, 2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x33, 0x16},       &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,       <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> }, <span class="comment">// 1072 - 1087 | {4, 48}</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                { <span class="stringliteral">&quot;length&quot;</span>,         0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},             &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a7e32821d42dbaeb712ced531ee118153">COMPLENGTH</a> },</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                { <span class="stringliteral">&quot;checksum&quot;</span>,       0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},             &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a666ff0fbe192b386d46e502fc990ce2f">COMPCHK</a> },</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;};</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a95c99dc8c594d3ec889b180a4579b6d7">   93</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__udp__rule__t.html">schc_udp_rule_t</a> <a class="code" href="rules__example_8h.html#a95c99dc8c594d3ec889b180a4579b6d7">udp_rule3</a> = {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        3, 4, 4, 4,</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                { <span class="stringliteral">&quot;src port&quot;</span>,       0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x13, 0x89},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                { <span class="stringliteral">&quot;dest port&quot;</span>,      0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x13, 0x88},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                { <span class="stringliteral">&quot;length&quot;</span>,         0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},             &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a7e32821d42dbaeb712ced531ee118153">COMPLENGTH</a> },</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                { <span class="stringliteral">&quot;checksum&quot;</span>,       0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0},             &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a666ff0fbe192b386d46e502fc990ce2f">COMPCHK</a> },</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        }</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;};</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#if USE_COAP</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="comment">// it is important to use strings, identical to the ones</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment">// defined in coap.h for the options</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment">// GET usage</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a384ad4788db34dc71a3e6c3d381c3dd6">  109</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__coap__rule__t.html">schc_coap_rule_t</a> <a class="code" href="rules__example_8h.html#a384ad4788db34dc71a3e6c3d381c3dd6">coap_rule1</a> = {</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        1, 9, 7, 9,</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                { <span class="stringliteral">&quot;version&quot;</span>,        0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {<a class="code" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">COAP_V1</a>},      &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                { <span class="stringliteral">&quot;type&quot;</span>,           0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {<a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c">CT_NON</a>},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;                { <span class="stringliteral">&quot;token length&quot;</span>,   0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {4},            &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                { <span class="stringliteral">&quot;code&quot;</span>,           0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aba595d8bca8bc5e67c37c0a9d89becfa">UP</a>,     {<a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4">CC_PUT</a>},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                { <span class="stringliteral">&quot;message ID&quot;</span>,     0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aba595d8bca8bc5e67c37c0a9d89becfa">UP</a>,     {0x23, 0xBB},   &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;                { <span class="stringliteral">&quot;token&quot;</span>,          24, 4,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x21, 0xFA, 0x01, 0x00},</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,       <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> }, <span class="comment">// by setting the last byte to 0x00, we allow 8 bit variations</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                { <span class="stringliteral">&quot;uri-path&quot;</span>,       0,  5,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     <span class="stringliteral">&quot;usage&quot;</span>,        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                { <span class="stringliteral">&quot;no-response&quot;</span>,    0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x1A},         &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                { <span class="stringliteral">&quot;payload marker&quot;</span>, 0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {255},          &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        }</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;};</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">// POST temperature value</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="rules__example_8h.html#ac357bca3e5fa9cfc03e341a611f6fee7">  127</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__coap__rule__t.html">schc_coap_rule_t</a> <a class="code" href="rules__example_8h.html#ac357bca3e5fa9cfc03e341a611f6fee7">coap_rule2</a> = {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        2, 8, 8, 10,</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        {</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                { <span class="stringliteral">&quot;version&quot;</span>,        0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {<a class="code" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">COAP_V1</a>},      &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                { <span class="stringliteral">&quot;type&quot;</span>,           0,  3,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {<a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694">CT_CON</a>, <a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2">CT_ACK</a>, <a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c">CT_NON</a>},</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#aaa6535816b00df52f9f7b05970feca0a">matchmap</a>, <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4afe73a1b760f465a54ad7244bfe3d719d">MAPPINGSENT</a>  },</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                { <span class="stringliteral">&quot;token length&quot;</span>,   0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {4},            &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                { <span class="stringliteral">&quot;code&quot;</span>,           0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aba595d8bca8bc5e67c37c0a9d89becfa">UP</a>,     {<a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31">CC_CONTENT</a>},   &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                { <span class="stringliteral">&quot;code&quot;</span>,           0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098a9b0b4a95b99523966e0e34ffdadac9da">DOWN</a>,   {<a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d">CC_GET</a>},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                { <span class="stringliteral">&quot;message ID&quot;</span>,     12, 2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aba595d8bca8bc5e67c37c0a9d89becfa">UP</a>,     {0x23, 0xBB},   &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,       <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> },</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                { <span class="stringliteral">&quot;message ID&quot;</span>,     12, 2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098a9b0b4a95b99523966e0e34ffdadac9da">DOWN</a>,   {0x7A, 0x10},   &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,       <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> },</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                { <span class="stringliteral">&quot;token&quot;</span>,          0,  4,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0, 0, 0, 0},   &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,    <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a75a19a84697dffabb0bedafeff40ffcc">VALUESENT</a> }, <span class="comment">// GET sensor value</span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                { <span class="stringliteral">&quot;uri-path&quot;</span>,       0,  4,   2, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>, <span class="stringliteral">&quot;[\&quot;temp\&quot;,\&quot;humi\&quot;,\&quot;batt\&quot;,\&quot;r\&quot;]\0&quot;</span>,</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#aaa6535816b00df52f9f7b05970feca0a">matchmap</a>,      <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4afe73a1b760f465a54ad7244bfe3d719d">MAPPINGSENT</a> },</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                { <span class="stringliteral">&quot;payload marker&quot;</span>, 0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {255},          &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> } <span class="comment">// respond with CONTENT</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        }</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;};</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="comment">// GET usage</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="rules__example_8h.html#aad010a1c8cbb0e3d0aa561f90ede728f">  146</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__coap__rule__t.html">schc_coap_rule_t</a> <a class="code" href="rules__example_8h.html#aad010a1c8cbb0e3d0aa561f90ede728f">coap_rule3</a> = {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        3, 8, 6, 8,</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        {</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                { <span class="stringliteral">&quot;version&quot;</span>,        0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {<a class="code" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">COAP_V1</a>},      &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                { <span class="stringliteral">&quot;type&quot;</span>,           0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {<a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c">CT_NON</a>},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                { <span class="stringliteral">&quot;token length&quot;</span>,   0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {4},            &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                { <span class="stringliteral">&quot;code&quot;</span>,           0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aba595d8bca8bc5e67c37c0a9d89becfa">UP</a>,     {<a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4">CC_PUT</a>},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                { <span class="stringliteral">&quot;message ID&quot;</span>,     0,  2,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aba595d8bca8bc5e67c37c0a9d89becfa">UP</a>,     {0x23, 0xBB},   &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                { <span class="stringliteral">&quot;token&quot;</span>,          24, 4,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x21, 0xFA, 0x01, 0x00},</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                        &amp;<a class="code" href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a>,       <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a> }, <span class="comment">// by setting the last byte to 0x00, we allow 8 bit variations</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                { <span class="stringliteral">&quot;uri-path&quot;</span>,       0,  5,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     <span class="stringliteral">&quot;usage&quot;</span>,        &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                { <span class="stringliteral">&quot;no-response&quot;</span>,    0,  1,   1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,     {0x1A},         &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,     <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        }</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;};</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="rules__example_8h.html#af20f40069a3444fd7a6db2bc08a5be7a">  162</a></span>&#160;<span class="keyword">const</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structschc__coap__rule__t.html">schc_coap_rule_t</a> <a class="code" href="rules__example_8h.html#af20f40069a3444fd7a6db2bc08a5be7a">coap_rule4</a> = {</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        4, 12, 12, 12,</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                { <span class="stringliteral">&quot;version&quot;</span>,            0,      1,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {<a class="code" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">COAP_V1</a>},      &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                { <span class="stringliteral">&quot;type&quot;</span>,               0,      1,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {<a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694">CT_CON</a>},       &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                { <span class="stringliteral">&quot;token length&quot;</span>,       0,      1,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {8},            &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;                { <span class="stringliteral">&quot;code&quot;</span>,               0,      1,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {<a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e">CC_POST</a>},      &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                { <span class="stringliteral">&quot;message ID&quot;</span>,         0,      2,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {0x23, 0xBB},   &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,        <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a75a19a84697dffabb0bedafeff40ffcc">VALUESENT</a> },</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                { <span class="stringliteral">&quot;token&quot;</span>,             24,      8,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {0x21, 0xFA, 0x01, 0x00},</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                                                                                    &amp;<a class="code" href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a>,        <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a75a19a84697dffabb0bedafeff40ffcc">VALUESENT</a> }, <span class="comment">// by setting the last byte to 0x00, we allow 8 bit variations</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                { <span class="stringliteral">&quot;uri-path&quot;</span>,           0,      2,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      <span class="stringliteral">&quot;rd&quot;</span>,           &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                { <span class="stringliteral">&quot;content-format&quot;</span>,     0,      1,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {0x28},         &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                { <span class="stringliteral">&quot;uri-query&quot;</span>,          0,      9,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {0x6C, 0x77, 0x6D, 0x32, 0x6D, 0x3D, 0x31, 0x2E, 0x30},</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                                                                                    &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                { <span class="stringliteral">&quot;uri-query&quot;</span>,          0,      11,     1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {0x65, 0x70, 0x3D, 0x6D, 0x61, 0x67, 0x69, 0x63, 0x69, 0x61, 0x6E},</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                                                                                    &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                { <span class="stringliteral">&quot;uri-query&quot;</span>,          0,      6,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {0x6C, 0x74, 0x3D, 0x31, 0x32, 0x31},</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                                                                                    &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> },</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                { <span class="stringliteral">&quot;payload marker&quot;</span>,     0,      1,      1, <a class="code" href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a>,      {255},          &amp;<a class="code" href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a>,         <a class="code" href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a> } <span class="comment">// respond with CONTENT</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;               }</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;};</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a913a5082a233a69b5835da87fd403fec">  186</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__compression__rule__t.html">schc_compression_rule_t</a> <a class="code" href="rules__example_8h.html#a913a5082a233a69b5835da87fd403fec">compression_rule_1</a> = {</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="preprocessor">#if USE_IPv6</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ad3007681888c4b2caf4f30b9f1e33390">ipv6_rule1</a>,</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor">#if USE_UDP</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ad1452d5ef8ea29dee09c559ec94d89ae">udp_rule1</a>,</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="preprocessor">#if USE_COAP</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#a384ad4788db34dc71a3e6c3d381c3dd6">coap_rule1</a>,</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;};</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a46560f752bda8360cf4bcdb1f915f88e">  198</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__compression__rule__t.html">schc_compression_rule_t</a> <a class="code" href="rules__example_8h.html#a46560f752bda8360cf4bcdb1f915f88e">compression_rule_2</a> = {</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">#if USE_IPv6</span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ad3007681888c4b2caf4f30b9f1e33390">ipv6_rule1</a>,</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="preprocessor">#if USE_UDP</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ad1452d5ef8ea29dee09c559ec94d89ae">udp_rule1</a>,</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="preprocessor">#if USE_COAP</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ac357bca3e5fa9cfc03e341a611f6fee7">coap_rule2</a>,</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;};</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a13f2495d09ba08841dc5f26fc1478da7">  210</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__compression__rule__t.html">schc_compression_rule_t</a> <a class="code" href="rules__example_8h.html#a13f2495d09ba08841dc5f26fc1478da7">compression_rule_3</a> = {</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="preprocessor">#if USE_IPv6</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ad3007681888c4b2caf4f30b9f1e33390">ipv6_rule1</a>,</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="preprocessor">#if USE_UDP</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ad1452d5ef8ea29dee09c559ec94d89ae">udp_rule1</a>,</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="preprocessor">#if USE_COAP</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#aad010a1c8cbb0e3d0aa561f90ede728f">coap_rule3</a>,</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;};</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a17a241b9d623e45124f49f078a3680b6">  222</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__compression__rule__t.html">schc_compression_rule_t</a> <a class="code" href="rules__example_8h.html#a17a241b9d623e45124f49f078a3680b6">compression_rule_4</a> = {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="preprocessor">#if USE_IPv6</span></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ad3007681888c4b2caf4f30b9f1e33390">ipv6_rule1</a>,</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="preprocessor">#if USE_UDP</span></div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#ad1452d5ef8ea29dee09c559ec94d89ae">udp_rule1</a>,</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="preprocessor">#if USE_COAP</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#af20f40069a3444fd7a6db2bc08a5be7a">coap_rule4</a>,</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;};</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="rules__example_8h.html#ad7a9eb271e89f86bd5bb13a1aadca77c">  234</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a> <a class="code" href="rules__example_8h.html#ad7a9eb271e89f86bd5bb13a1aadca77c">schc_rule_1</a> = { 0x01, &amp;<a class="code" href="rules__example_8h.html#a913a5082a233a69b5835da87fd403fec">compression_rule_1</a>, <a class="code" href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34ae3a1895856e19a3160bcf36ea0712e79">NOT_FRAGMENTED</a>, 0, 0, 0, 0 };</div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a649cb55e08771fc07bad0dbf6cbcbfca">  235</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a> <a class="code" href="rules__example_8h.html#a649cb55e08771fc07bad0dbf6cbcbfca">schc_rule_2</a> = { 0x02, &amp;<a class="code" href="rules__example_8h.html#a913a5082a233a69b5835da87fd403fec">compression_rule_1</a>, <a class="code" href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34a0344f277cbdd16e3f0ea0ff1d1be1b17">NO_ACK</a>, 1, 0, 0, 0 };</div>
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a8c8f2bccafaae05d212179ae7852ffea">  236</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a> <a class="code" href="rules__example_8h.html#a8c8f2bccafaae05d212179ae7852ffea">schc_rule_3</a> = { 0x03, &amp;<a class="code" href="rules__example_8h.html#a913a5082a233a69b5835da87fd403fec">compression_rule_1</a>, <a class="code" href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34abb669910db44bb35ca22cfa0987cff5f">ACK_ON_ERROR</a>, 3, 6, 1, 0 };</div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="rules__example_8h.html#adbf2029f8b80beda65dbaa52a2717ff8">  237</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a> <a class="code" href="rules__example_8h.html#adbf2029f8b80beda65dbaa52a2717ff8">schc_rule_4</a> = { 0x04, &amp;<a class="code" href="rules__example_8h.html#a913a5082a233a69b5835da87fd403fec">compression_rule_1</a>, <a class="code" href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34ada1056992e11c334d2416de8b75543f7">ACK_ALWAYS</a>, 3, 6, 1, 0 };</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="rules__example_8h.html#ac57deeb120ac309217e23feab7a24266">  239</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a> <a class="code" href="rules__example_8h.html#ac57deeb120ac309217e23feab7a24266">schc_rule_5</a> = { 0x05, &amp;<a class="code" href="rules__example_8h.html#a46560f752bda8360cf4bcdb1f915f88e">compression_rule_2</a>, <a class="code" href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34ae3a1895856e19a3160bcf36ea0712e79">NOT_FRAGMENTED</a>, 0, 0, 0, 0 };</div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="rules__example_8h.html#ae3597c28d197b04f74ef942473299af6">  240</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a> <a class="code" href="rules__example_8h.html#ae3597c28d197b04f74ef942473299af6">schc_rule_6</a> = { 0x06, &amp;<a class="code" href="rules__example_8h.html#a46560f752bda8360cf4bcdb1f915f88e">compression_rule_2</a>, <a class="code" href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34a0344f277cbdd16e3f0ea0ff1d1be1b17">NO_ACK</a>, 1, 0, 0, 0 };</div>
<div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a6037a93b7ce892428ea9441e9dda4410">  241</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a> <a class="code" href="rules__example_8h.html#a6037a93b7ce892428ea9441e9dda4410">schc_rule_7</a> = { 0x07, &amp;<a class="code" href="rules__example_8h.html#a46560f752bda8360cf4bcdb1f915f88e">compression_rule_2</a>, <a class="code" href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34abb669910db44bb35ca22cfa0987cff5f">ACK_ON_ERROR</a>, 3, 6, 1, 0 };</div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a59add53183e189615dee008fe387b5ab">  242</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a> <a class="code" href="rules__example_8h.html#a59add53183e189615dee008fe387b5ab">schc_rule_8</a> = { 0x08, &amp;<a class="code" href="rules__example_8h.html#a46560f752bda8360cf4bcdb1f915f88e">compression_rule_2</a>, <a class="code" href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34ada1056992e11c334d2416de8b75543f7">ACK_ALWAYS</a>, 3, 6, 1, 0 };</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="comment">/* define total rules per layer */</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="rules__example_8h.html#ad0c6016547c04131972ed425ef7a8783">  245</a></span>&#160;<span class="preprocessor">#define IPV6_RULES              3</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a2805aa053679b024cb5f2a66c7e9f4dc">  246</a></span>&#160;<span class="preprocessor">#define UDP_RULES               3</span></div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="rules__example_8h.html#af1bfbcdf4990d97b6c18bc2a145f6b33">  247</a></span>&#160;<span class="preprocessor">#define COAP_RULES              4</span></div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160; </div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="comment">/* save rules in flash */</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a261b095f3fef2a214680203e7a8d1ed1">  250</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__rule__t.html">schc_rule_t</a>* <a class="code" href="rules__example_8h.html#a261b095f3fef2a214680203e7a8d1ed1">node1_schc_rules</a>[] = { &amp;<a class="code" href="rules__example_8h.html#ad7a9eb271e89f86bd5bb13a1aadca77c">schc_rule_1</a>, &amp;<a class="code" href="rules__example_8h.html#a649cb55e08771fc07bad0dbf6cbcbfca">schc_rule_2</a>,</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#a8c8f2bccafaae05d212179ae7852ffea">schc_rule_3</a>, &amp;<a class="code" href="rules__example_8h.html#adbf2029f8b80beda65dbaa52a2717ff8">schc_rule_4</a>, &amp;<a class="code" href="rules__example_8h.html#ac57deeb120ac309217e23feab7a24266">schc_rule_5</a>, &amp;<a class="code" href="rules__example_8h.html#ae3597c28d197b04f74ef942473299af6">schc_rule_6</a>, &amp;<a class="code" href="rules__example_8h.html#a6037a93b7ce892428ea9441e9dda4410">schc_rule_7</a>,</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        &amp;<a class="code" href="rules__example_8h.html#a59add53183e189615dee008fe387b5ab">schc_rule_8</a> };</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="comment">/* rules for a particular device */</span></div>
<div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="rules__example_8h.html#abd5c2e2a6c30a7fb8c1b0cfdf964627b">  255</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__device.html">schc_device</a> <a class="code" href="rules__example_8h.html#abd5c2e2a6c30a7fb8c1b0cfdf964627b">node1</a> = { 1, 8, &amp;<a class="code" href="rules__example_8h.html#a261b095f3fef2a214680203e7a8d1ed1">node1_schc_rules</a> };</div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a8a79934cc81bde43cfe38af39fac3aaf">  256</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__device.html">schc_device</a> <a class="code" href="rules__example_8h.html#a8a79934cc81bde43cfe38af39fac3aaf">node2</a> = { 2, 8, &amp;node2_schc_rules};</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="rules__example_8h.html#a268c0726d6884c56c5c4d0b96ac162cd">  258</a></span>&#160;<span class="preprocessor">#define DEVICE_COUNT            2</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; </div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="comment">/* server keeps track of multiple devices: add devices to device list */</span></div>
<div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="rules__example_8h.html#afdcfe31aacea88c870014ed6857e979a">  261</a></span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structschc__device.html">schc_device</a>* <a class="code" href="rules__example_8h.html#afdcfe31aacea88c870014ed6857e979a">devices</a>[<a class="code" href="rules__example_8h.html#a268c0726d6884c56c5c4d0b96ac162cd">DEVICE_COUNT</a>] = { &amp;<a class="code" href="rules__example_8h.html#abd5c2e2a6c30a7fb8c1b0cfdf964627b">node1</a>, &amp;<a class="code" href="rules__example_8h.html#a8a79934cc81bde43cfe38af39fac3aaf">node2</a> };</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructschc__coap__rule__t_html"><div class="ttname"><a href="structschc__coap__rule__t.html">schc_coap_rule_t</a></div><div class="ttdef"><b>Definition:</b> config.h:69</div></div>
<div class="ttc" id="aconfig_8h_html_a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83"><div class="ttname"><a href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ad6773d0a545d63251612fcd331aedb83">NOTSENT</a></div><div class="ttdef"><b>Definition:</b> config.h:26</div></div>
<div class="ttc" id="arules__example_8h_html_a46560f752bda8360cf4bcdb1f915f88e"><div class="ttname"><a href="rules__example_8h.html#a46560f752bda8360cf4bcdb1f915f88e">compression_rule_2</a></div><div class="ttdeci">const struct schc_compression_rule_t compression_rule_2</div><div class="ttdef"><b>Definition:</b> rules_example.h:198</div></div>
<div class="ttc" id="aschc__config_8h_html_a00b61f9b90ab7065eb6a978141d7fd34a0344f277cbdd16e3f0ea0ff1d1be1b17"><div class="ttname"><a href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34a0344f277cbdd16e3f0ea0ff1d1be1b17">NO_ACK</a></div><div class="ttdef"><b>Definition:</b> schc_config.h:97</div></div>
<div class="ttc" id="arules__example_8h_html_a59add53183e189615dee008fe387b5ab"><div class="ttname"><a href="rules__example_8h.html#a59add53183e189615dee008fe387b5ab">schc_rule_8</a></div><div class="ttdeci">const struct schc_rule_t schc_rule_8</div><div class="ttdef"><b>Definition:</b> rules_example.h:242</div></div>
<div class="ttc" id="arules__example_8h_html_ae3597c28d197b04f74ef942473299af6"><div class="ttname"><a href="rules__example_8h.html#ae3597c28d197b04f74ef942473299af6">schc_rule_6</a></div><div class="ttdeci">const struct schc_rule_t schc_rule_6</div><div class="ttdef"><b>Definition:</b> rules_example.h:240</div></div>
<div class="ttc" id="arules__example_8h_html_afdcfe31aacea88c870014ed6857e979a"><div class="ttname"><a href="rules__example_8h.html#afdcfe31aacea88c870014ed6857e979a">devices</a></div><div class="ttdeci">const struct schc_device * devices[DEVICE_COUNT]</div><div class="ttdef"><b>Definition:</b> rules_example.h:261</div></div>
<div class="ttc" id="arules__example_8h_html_a384ad4788db34dc71a3e6c3d381c3dd6"><div class="ttname"><a href="rules__example_8h.html#a384ad4788db34dc71a3e6c3d381c3dd6">coap_rule1</a></div><div class="ttdeci">const static struct schc_coap_rule_t coap_rule1</div><div class="ttdef"><b>Definition:</b> rules_example.h:109</div></div>
<div class="ttc" id="arules__example_8h_html_ac57deeb120ac309217e23feab7a24266"><div class="ttname"><a href="rules__example_8h.html#ac57deeb120ac309217e23feab7a24266">schc_rule_5</a></div><div class="ttdeci">const struct schc_rule_t schc_rule_5</div><div class="ttdef"><b>Definition:</b> rules_example.h:239</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d">CC_GET</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:119</div></div>
<div class="ttc" id="arules__example_8h_html_adbf2029f8b80beda65dbaa52a2717ff8"><div class="ttname"><a href="rules__example_8h.html#adbf2029f8b80beda65dbaa52a2717ff8">schc_rule_4</a></div><div class="ttdeci">const struct schc_rule_t schc_rule_4</div><div class="ttdef"><b>Definition:</b> rules_example.h:237</div></div>
<div class="ttc" id="arules__example_8h_html_a6037a93b7ce892428ea9441e9dda4410"><div class="ttname"><a href="rules__example_8h.html#a6037a93b7ce892428ea9441e9dda4410">schc_rule_7</a></div><div class="ttdeci">const struct schc_rule_t schc_rule_7</div><div class="ttdef"><b>Definition:</b> rules_example.h:241</div></div>
<div class="ttc" id="acompressor_8c_html_a6e20dc749624654a5c2a59a7ab0a45b8"><div class="ttname"><a href="compressor_8c.html#a6e20dc749624654a5c2a59a7ab0a45b8">MSB</a></div><div class="ttdeci">static uint8_t MSB(struct schc_field *target_field, unsigned char *field_value)</div><div class="ttdoc">The MSB matching operator.</div><div class="ttdef"><b>Definition:</b> compressor.c:1088</div></div>
<div class="ttc" id="astructschc__device_html"><div class="ttname"><a href="structschc__device.html">schc_device</a></div><div class="ttdef"><b>Definition:</b> config.h:119</div></div>
<div class="ttc" id="aschc__config_8h_html_a00b61f9b90ab7065eb6a978141d7fd34ada1056992e11c334d2416de8b75543f7"><div class="ttname"><a href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34ada1056992e11c334d2416de8b75543f7">ACK_ALWAYS</a></div><div class="ttdef"><b>Definition:</b> schc_config.h:97</div></div>
<div class="ttc" id="astructschc__rule__t_html"><div class="ttname"><a href="structschc__rule__t.html">schc_rule_t</a></div><div class="ttdef"><b>Definition:</b> config.h:102</div></div>
<div class="ttc" id="acompressor_8c_html_a61950fdd581e34878efece4973ac1159"><div class="ttname"><a href="compressor_8c.html#a61950fdd581e34878efece4973ac1159">equal</a></div><div class="ttdeci">static uint8_t equal(struct schc_field *target_field, unsigned char *field_value)</div><div class="ttdoc">The equal matching operator.</div><div class="ttdef"><b>Definition:</b> compressor.c:1047</div></div>
<div class="ttc" id="arules__example_8h_html_a85ae7295e74c5e4775aadce09dab858f"><div class="ttname"><a href="rules__example_8h.html#a85ae7295e74c5e4775aadce09dab858f">ipv6_rule2</a></div><div class="ttdeci">const static struct schc_ipv6_rule_t ipv6_rule2</div><div class="ttdef"><b>Definition:</b> rules_example.h:29</div></div>
<div class="ttc" id="astructschc__ipv6__rule__t_html"><div class="ttname"><a href="structschc__ipv6__rule__t.html">schc_ipv6_rule_t</a></div><div class="ttdef"><b>Definition:</b> config.h:49</div></div>
<div class="ttc" id="astructschc__compression__rule__t_html"><div class="ttname"><a href="structschc__compression__rule__t.html">schc_compression_rule_t</a></div><div class="ttdef"><b>Definition:</b> config.h:87</div></div>
<div class="ttc" id="arules__example_8h_html_a8c8f2bccafaae05d212179ae7852ffea"><div class="ttname"><a href="rules__example_8h.html#a8c8f2bccafaae05d212179ae7852ffea">schc_rule_3</a></div><div class="ttdeci">const struct schc_rule_t schc_rule_3</div><div class="ttdef"><b>Definition:</b> rules_example.h:236</div></div>
<div class="ttc" id="aschc__config_8h_html"><div class="ttname"><a href="schc__config_8h.html">schc_config.h</a></div></div>
<div class="ttc" id="apicocoap_8h_html_a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694"><div class="ttname"><a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694">CT_CON</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:105</div></div>
<div class="ttc" id="arules__example_8h_html_a268c0726d6884c56c5c4d0b96ac162cd"><div class="ttname"><a href="rules__example_8h.html#a268c0726d6884c56c5c4d0b96ac162cd">DEVICE_COUNT</a></div><div class="ttdeci">#define DEVICE_COUNT</div><div class="ttdef"><b>Definition:</b> rules_example.h:258</div></div>
<div class="ttc" id="apicocoap_8h_html_a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2"><div class="ttname"><a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2">CT_ACK</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:107</div></div>
<div class="ttc" id="arules__example_8h_html_a95c99dc8c594d3ec889b180a4579b6d7"><div class="ttname"><a href="rules__example_8h.html#a95c99dc8c594d3ec889b180a4579b6d7">udp_rule3</a></div><div class="ttdeci">const static struct schc_udp_rule_t udp_rule3</div><div class="ttdef"><b>Definition:</b> rules_example.h:93</div></div>
<div class="ttc" id="arules__example_8h_html_a649cb55e08771fc07bad0dbf6cbcbfca"><div class="ttname"><a href="rules__example_8h.html#a649cb55e08771fc07bad0dbf6cbcbfca">schc_rule_2</a></div><div class="ttdeci">const struct schc_rule_t schc_rule_2</div><div class="ttdef"><b>Definition:</b> rules_example.h:235</div></div>
<div class="ttc" id="aconfig_8h_html_a3e43f38d5254d1e3bbf1d0955eb98ce4a666ff0fbe192b386d46e502fc990ce2f"><div class="ttname"><a href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a666ff0fbe192b386d46e502fc990ce2f">COMPCHK</a></div><div class="ttdef"><b>Definition:</b> config.h:31</div></div>
<div class="ttc" id="arules__example_8h_html_a913a5082a233a69b5835da87fd403fec"><div class="ttname"><a href="rules__example_8h.html#a913a5082a233a69b5835da87fd403fec">compression_rule_1</a></div><div class="ttdeci">const struct schc_compression_rule_t compression_rule_1</div><div class="ttdef"><b>Definition:</b> rules_example.h:186</div></div>
<div class="ttc" id="aconfig_8h_html_a99f26e6ee9fcd62f75203b5402df8098a9b0b4a95b99523966e0e34ffdadac9da"><div class="ttname"><a href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098a9b0b4a95b99523966e0e34ffdadac9da">DOWN</a></div><div class="ttdef"><b>Definition:</b> config.h:18</div></div>
<div class="ttc" id="aconfig_8h_html_a3e43f38d5254d1e3bbf1d0955eb98ce4afe73a1b760f465a54ad7244bfe3d719d"><div class="ttname"><a href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4afe73a1b760f465a54ad7244bfe3d719d">MAPPINGSENT</a></div><div class="ttdef"><b>Definition:</b> config.h:28</div></div>
<div class="ttc" id="arules__example_8h_html_ad7a9eb271e89f86bd5bb13a1aadca77c"><div class="ttname"><a href="rules__example_8h.html#ad7a9eb271e89f86bd5bb13a1aadca77c">schc_rule_1</a></div><div class="ttdeci">const struct schc_rule_t schc_rule_1</div><div class="ttdef"><b>Definition:</b> rules_example.h:234</div></div>
<div class="ttc" id="aconfig_8h_html_a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe"><div class="ttname"><a href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4ac8bd62065abff19ea8ce3ec18cf3d6fe">LSB</a></div><div class="ttdef"><b>Definition:</b> config.h:29</div></div>
<div class="ttc" id="arules__example_8h_html_ad1452d5ef8ea29dee09c559ec94d89ae"><div class="ttname"><a href="rules__example_8h.html#ad1452d5ef8ea29dee09c559ec94d89ae">udp_rule1</a></div><div class="ttdeci">const static struct schc_udp_rule_t udp_rule1</div><div class="ttdef"><b>Definition:</b> rules_example.h:73</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4">CC_PUT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:121</div></div>
<div class="ttc" id="apicocoap_8h_html_a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb"><div class="ttname"><a href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">COAP_V1</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:96</div></div>
<div class="ttc" id="arules__example_8h_html_ad3007681888c4b2caf4f30b9f1e33390"><div class="ttname"><a href="rules__example_8h.html#ad3007681888c4b2caf4f30b9f1e33390">ipv6_rule1</a></div><div class="ttdeci">const static struct schc_ipv6_rule_t ipv6_rule1</div><div class="ttdef"><b>Definition:</b> rules_example.h:7</div></div>
<div class="ttc" id="aschc__config_8h_html_a00b61f9b90ab7065eb6a978141d7fd34ae3a1895856e19a3160bcf36ea0712e79"><div class="ttname"><a href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34ae3a1895856e19a3160bcf36ea0712e79">NOT_FRAGMENTED</a></div><div class="ttdef"><b>Definition:</b> schc_config.h:97</div></div>
<div class="ttc" id="arules__example_8h_html_a17a241b9d623e45124f49f078a3680b6"><div class="ttname"><a href="rules__example_8h.html#a17a241b9d623e45124f49f078a3680b6">compression_rule_4</a></div><div class="ttdeci">const struct schc_compression_rule_t compression_rule_4</div><div class="ttdef"><b>Definition:</b> rules_example.h:222</div></div>
<div class="ttc" id="aschc__config_8h_html_a00b61f9b90ab7065eb6a978141d7fd34abb669910db44bb35ca22cfa0987cff5f"><div class="ttname"><a href="schc__config_8h.html#a00b61f9b90ab7065eb6a978141d7fd34abb669910db44bb35ca22cfa0987cff5f">ACK_ON_ERROR</a></div><div class="ttdef"><b>Definition:</b> schc_config.h:97</div></div>
<div class="ttc" id="aconfig_8h_html_a99f26e6ee9fcd62f75203b5402df8098aba595d8bca8bc5e67c37c0a9d89becfa"><div class="ttname"><a href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aba595d8bca8bc5e67c37c0a9d89becfa">UP</a></div><div class="ttdef"><b>Definition:</b> config.h:18</div></div>
<div class="ttc" id="arules__example_8h_html_aad010a1c8cbb0e3d0aa561f90ede728f"><div class="ttname"><a href="rules__example_8h.html#aad010a1c8cbb0e3d0aa561f90ede728f">coap_rule3</a></div><div class="ttdeci">const static struct schc_coap_rule_t coap_rule3</div><div class="ttdef"><b>Definition:</b> rules_example.h:146</div></div>
<div class="ttc" id="arules__example_8h_html_af20f40069a3444fd7a6db2bc08a5be7a"><div class="ttname"><a href="rules__example_8h.html#af20f40069a3444fd7a6db2bc08a5be7a">coap_rule4</a></div><div class="ttdeci">const static struct schc_coap_rule_t coap_rule4</div><div class="ttdef"><b>Definition:</b> rules_example.h:162</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e">CC_POST</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:120</div></div>
<div class="ttc" id="arules__example_8h_html_a54474df0f717388d3357229bf7256aff"><div class="ttname"><a href="rules__example_8h.html#a54474df0f717388d3357229bf7256aff">ipv6_rule3</a></div><div class="ttdeci">const static struct schc_ipv6_rule_t ipv6_rule3</div><div class="ttdef"><b>Definition:</b> rules_example.h:49</div></div>
<div class="ttc" id="astructschc__udp__rule__t_html"><div class="ttname"><a href="structschc__udp__rule__t.html">schc_udp_rule_t</a></div><div class="ttdef"><b>Definition:</b> config.h:59</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31">CC_CONTENT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:128</div></div>
<div class="ttc" id="acompressor_8c_html_aaa6535816b00df52f9f7b05970feca0a"><div class="ttname"><a href="compressor_8c.html#aaa6535816b00df52f9f7b05970feca0a">matchmap</a></div><div class="ttdeci">static uint8_t matchmap(struct schc_field *target_field, unsigned char *field_value)</div><div class="ttdoc">The match-map matching operator.</div><div class="ttdef"><b>Definition:</b> compressor.c:1145</div></div>
<div class="ttc" id="acompressor_8c_html_a3700c9316a3fa2826dd77686c161638c"><div class="ttname"><a href="compressor_8c.html#a3700c9316a3fa2826dd77686c161638c">ignore</a></div><div class="ttdeci">static uint8_t ignore(struct schc_field *target_field, unsigned char *field_value)</div><div class="ttdoc">The ignore matching operator.</div><div class="ttdef"><b>Definition:</b> compressor.c:1073</div></div>
<div class="ttc" id="arules__example_8h_html_a95ba8dccc95c9da737f1f058be5b7854"><div class="ttname"><a href="rules__example_8h.html#a95ba8dccc95c9da737f1f058be5b7854">udp_rule2</a></div><div class="ttdeci">const static struct schc_udp_rule_t udp_rule2</div><div class="ttdef"><b>Definition:</b> rules_example.h:83</div></div>
<div class="ttc" id="arules__example_8h_html_abd5c2e2a6c30a7fb8c1b0cfdf964627b"><div class="ttname"><a href="rules__example_8h.html#abd5c2e2a6c30a7fb8c1b0cfdf964627b">node1</a></div><div class="ttdeci">const struct schc_device node1</div><div class="ttdef"><b>Definition:</b> rules_example.h:255</div></div>
<div class="ttc" id="arules__example_8h_html_ac357bca3e5fa9cfc03e341a611f6fee7"><div class="ttname"><a href="rules__example_8h.html#ac357bca3e5fa9cfc03e341a611f6fee7">coap_rule2</a></div><div class="ttdeci">const static struct schc_coap_rule_t coap_rule2</div><div class="ttdef"><b>Definition:</b> rules_example.h:127</div></div>
<div class="ttc" id="apicocoap_8h_html_a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c"><div class="ttname"><a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c">CT_NON</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:106</div></div>
<div class="ttc" id="aconfig_8h_html_a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b"><div class="ttname"><a href="config_8h.html#a99f26e6ee9fcd62f75203b5402df8098aa6faa6cc2b54e7dabf207ad5d989e49b">BI</a></div><div class="ttdef"><b>Definition:</b> config.h:18</div></div>
<div class="ttc" id="aconfig_8h_html_a3e43f38d5254d1e3bbf1d0955eb98ce4a7e32821d42dbaeb712ced531ee118153"><div class="ttname"><a href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a7e32821d42dbaeb712ced531ee118153">COMPLENGTH</a></div><div class="ttdef"><b>Definition:</b> config.h:30</div></div>
<div class="ttc" id="arules__example_8h_html_a261b095f3fef2a214680203e7a8d1ed1"><div class="ttname"><a href="rules__example_8h.html#a261b095f3fef2a214680203e7a8d1ed1">node1_schc_rules</a></div><div class="ttdeci">const struct schc_rule_t * node1_schc_rules[]</div><div class="ttdef"><b>Definition:</b> rules_example.h:250</div></div>
<div class="ttc" id="arules__example_8h_html_a8a79934cc81bde43cfe38af39fac3aaf"><div class="ttname"><a href="rules__example_8h.html#a8a79934cc81bde43cfe38af39fac3aaf">node2</a></div><div class="ttdeci">const struct schc_device node2</div><div class="ttdef"><b>Definition:</b> rules_example.h:256</div></div>
<div class="ttc" id="aconfig_8h_html_a3e43f38d5254d1e3bbf1d0955eb98ce4a75a19a84697dffabb0bedafeff40ffcc"><div class="ttname"><a href="config_8h.html#a3e43f38d5254d1e3bbf1d0955eb98ce4a75a19a84697dffabb0bedafeff40ffcc">VALUESENT</a></div><div class="ttdef"><b>Definition:</b> config.h:27</div></div>
<div class="ttc" id="arules__example_8h_html_a13f2495d09ba08841dc5f26fc1478da7"><div class="ttname"><a href="rules__example_8h.html#a13f2495d09ba08841dc5f26fc1478da7">compression_rule_3</a></div><div class="ttdeci">const struct schc_compression_rule_t compression_rule_3</div><div class="ttdef"><b>Definition:</b> rules_example.h:210</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
